package com.brp.dao;

import com.brp.po.Salerecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brp.vo.SaleVo;
import org.apache.ibatis.annotations.Insert;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author all
 * @since 2022-03-16
 */
public interface SalerecordMapper extends BaseMapper<Salerecord> {
    @Insert("insert into t_salerecord (salerecord_id, fk_client_id, fk_sale_id) VALUES (null,(select client_id from t_client where client_name = #{clientName}),#{saleId},#{cargoId})")
    Integer insertSaleRecord(SaleVo saleVo);
}
